home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 13 / CU Amiga Magazine's Super CD-ROM 13 (1997)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1997-08].iso / CUCD / Graphics / irit70 / src / makeflag.djg < prev    next >
Text File  |  1996-08-12  |  2KB  |  71 lines

  1. #
  2. # Flags to compile the IRIT solid modeller using DJGCC on the IBM PC.
  3. #
  4. #                    Gershon Elber, Dec 1991
  5. #
  6.  
  7. #
  8. # make file to use. I am using regular Borland's maker (from Borland 3.0).
  9. # This maker is the same as previous Borland compilers make (uprotected
  10. # mode make). In 3.0 make is protected and cause gcc to crash.
  11. # Note you may need to change the include statements in the subdirectory
  12. # makefiles if other make is to be used.
  13. #
  14. MAKE = maker
  15.  
  16. BASE_DISK = d
  17. BASE_DJGPP_DIR  = $(BASE_DISK):/dos/djgpp
  18. BASE_DJGPP_DIR2 = $(BASE_DISK):\dos\djgpp
  19. BASE_IRIT_DIR   = $(BASE_DISK):/dos/irit
  20. BASE_IRIT_DIR2  = $(BASE_DISK):\dos\irit
  21.  
  22. #
  23. #
  24. # All libraries created will be installed into the LIB_DIR directory.
  25. #
  26. LIB_DIR     = $(BASE_DJGPP_DIR)/mylib
  27. LIB_DIR_DOS = $(BASE_DJGPP_DIR2)\mylib
  28.  
  29. #
  30. # All includes files associated with the installed libraries will be
  31. # installed into the INC_DIR directory.
  32. #
  33. INC_DIR     = $(BASE_DJGPP_DIR)/myinclud
  34. INC_DIR_DOS = $(BASE_DJGPP_DIR2)\myinclud
  35.  
  36. #
  37. # All binaries created will be installed into the BIN_DIR directory.
  38. #
  39. BIN_DIR = $(BASE_IRIT_DIR)/bin
  40. BIN_DIR_DOS = $(BASE_IRIT_DIR2)\bin
  41.  
  42. #
  43. # Location of object file to resolve circularities in libraries.
  44. #
  45. CIRCLINK = $(BASE_DISK):/dos/irit/circlink/circlink.obj
  46.  
  47. #
  48. # Flags using DJ 1.11 (gcc 2.57) for the IBM PC and its graphics drivers
  49. #
  50. CC = gcc
  51. DFLAGS = -U__MSDOS__ -DGETCWD -DDJGCC
  52. # CFLAGS = -O2 $(DFLAGS)
  53. CFLAGS = $(DFLAGS)
  54. MORELIBS = -lintr -lgr -lpc
  55. MOREOBJS = dosgraph.o
  56.  
  57. #
  58. # Default rule for compilation.
  59. #
  60. .c.obj:
  61.     $(CC) $(CFLAGS) -I. -I$(INC_DIR) -o $*.obj -c $<
  62. .cc.obj:
  63.     $(CC) $(CFLAGS) -I. -I$(INC_DIR) -o $*.obj -c $<
  64.  
  65. #
  66. # All libraries.
  67. #
  68. LIBS = $(CIRCLINK) -L$(LIB_DIR) \
  69.     -luser -lbool -lgeom -lprsr -ltrim -ltriv -ltrng -lsymb \
  70.     -lcagd -lmisc -lxtra -lintr -lgif
  71.